from django.test import TestCase
from polls.models import Question
from django.utils import timezone


# Create your tests here.

class QuetionTest(TestCase):
    def setUp(self):
        Question.objects.create(question_text="lion", pub_date=timezone.now())
        Question.objects.create(question_text="cat", pub_date=timezone.now())

    def test_name(self):
        q = Question.objects.get(pk=1)
        self.assertEqual(q.question_text, "lion")
